<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">

<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<!--▼ブロック編集　ここから-->
<!--{if $arrBlocData.tpl_path != '' and $preview == on}-->
<h3>プレビュー</h3>

<div class="preview-box">
<!--{include file=$arrBlocData.tpl_path}-->
</div>
<!--{/if}-->


<form name="form_bloc" id="form_bloc" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
<input type="hidden" name="mode" value="">
<input type="hidden" name="bloc_id" value="<!--{$bloc_id}-->">
<div class="menuclass">
<dl>
<dt class="lefting"><!--{ if $arrErr.bloc_name != "" }--> <span class="red12"><!--{$arrErr.bloc_name}--></span><!--{/if}-->
	ブロック名
</dt>
<dd>
	<input type="text" name="bloc_name" value="<!--{$arrBlocData.bloc_name|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.bloc_name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="60" class="box60" />
	<span class="red"> （上限<!--{$smarty.const.STEXT_LEN}-->文字）</span>
</dd>

<dt class="lefting"><!--{ if $arrErr.filename != "" }--> <span class="red12"><!--{$arrErr.filename}--></span><!--{/if}-->
	ファイル名
</dt>
<dd>
	<input type="text" name="filename" value="<!--{$arrBlocData.filename|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.filename != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" size="60" class="box60" />.tpl
	<span class="red"> （上限<!--{$smarty.const.STEXT_LEN}-->文字）</span>
</dd>

<dt>編集領域</dt>
<dd>
	<textarea name="bloc_html" cols=75 rows=<!--{$text_row}--> align="left" wrap=off style="width: 650px;"><!--{$arrBlocData.tpl_data|smarty:nodefaults}--></textarea>
	<input type="hidden" name="html_area_row" value="<!--{$text_row}-->">
	<p>
	<input type="button" value=<!--{if $text_row > 13}-->"小さくする"<!--{else}-->"大きくする"<!--{/if}--> onClick="ChangeSize(this, bloc_html, 50, 13, html_area_row)">
	</p>
</dd>
</dl>
</div>



<div class="btn_box">
<input type='button' value='登録' name='subm' onclick="fnFormModeSubmit('form_bloc','confirm','','');" />
<input type='button' value='プレビュー' name='preview' onclick="fnFormModeSubmit('form_bloc','preview','','');" />
</div>
<!--▲ブロック編集　ここまで-->



<!--▼ブロック一覧　ここから-->
<h3>編集可能ブロック</h3>

<div class="menuclass">
<table summary="ブロック一覧">
<!--{foreach key=key item=item from=$arrBlocList}-->
<tr>
	<td align="center" bgcolor="<!--{if $item.bloc_id == $bloc_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
	<a href="<!--{$smarty.server.PHP_SELF|escape}-->?bloc_id=<!--{$item.bloc_id}-->" ><!--{$item.bloc_name}--></a>
	</td>
	<td  align="center" bgcolor="<!--{if $item.bloc_id == $bloc_id}--><!--{$smarty.const.SELECT_RGB}--><!--{else}-->#ffffff<!--{/if}-->">
	<!--{if $item.del_flg == 0}-->
	<input type="button" value="削除" name="del<!--{$item.bloc_id}-->" onclick="fnFormModeSubmit('form_bloc','delete','bloc_id',this.name.substr(3));"  />
	<input type="hidden" value="<!--{$item.bloc_id}-->" name="del_id<!--{$item.bloc_id}-->">
	<!--{/if}-->
	</td>
</tr>
<!--{/foreach}-->
</table>


	<div class="btn_box">
	<input type='button' value='新規ブロック作成' name='subm' onclick="location.href='http://<!--{$smarty.server.HTTP_HOST}--><!--{$smarty.server.PHP_SELF|escape}-->'">
	</div>

</div>
<!--▲ブロック一覧　ここまで-->

</form>	
</div>
</div>
